package com.gome.ocean.service.datax;

import java.util.List;
import java.util.Map;

import com.github.pagehelper.Page;
import com.gome.ocean.dao.model.datasource.DataSourceAuthorityOAApplyBean;

/**
 * @author zhangguoqing 2016年10月19日 下午2:46:42
 * @since 5.0.0
 */
public interface IDataSourceAuthApplyService {

    public boolean insert(DataSourceAuthorityOAApplyBean applyBean);

    public boolean updateById(DataSourceAuthorityOAApplyBean applyBean);

    public DataSourceAuthorityOAApplyBean getBeanByMap(Map<String, Object> map);

    public List<DataSourceAuthorityOAApplyBean> getBeanListsByMap(Map<String, Object> map, Integer pageNum,
                                                                  Integer pageSize);

    public Page<DataSourceAuthorityOAApplyBean> getBeanListsByProjectGroup(List<String> projects, Integer pageNum,
                                                                           Integer pageSize);
    
    public Page<DataSourceAuthorityOAApplyBean> getBeanAllLists(Integer pageNum,Integer pageSize);
    
    public boolean deleteDatasourceById(Long id);
}
